import request from "@/utils/request";

//登录
export function login (userInfo) {
    return request({
      url: '/users/login',
      method:'POST',
      data: userInfo
    })
  }

  export function updateUser(userData) {
    return request({
      url: '/user/update',
      method: 'PUT',
      data: userData
    })
  }